#ifndef HEARTBEAT_THREAD_H
#define HEARTBEAT_THREAD_H

#include <QThread>
#include "rov_config.h"
#include "udp.h"

class MYHeartbeatThread : public QThread
{
    Q_OBJECT

public:
    MYHeartbeatThread(CONFIG* config);

private:
    CONFIG* send_config;

protected:
    void run() override;

signals:
//    void update_make_pair_state(int val);
//    void update_cat_ip(std::string ip);
    void update_heartbeat_log(QString log);
    void update_heartstate(int state);
};

#endif // HEARTBEAT_THREAD_H
